// Copyright 2015 Christian Roggia. All rights reserved.
// Use of this source code is governed by an Apache 2.0 license that can be
// found in the LICENSE file.

#ifndef __GLOBAL_H__
#define __GLOBAL_H__

#include "StdAfx.h"

/** -------------->> Segment ".data" <<-------------- **/
extern WCHAR g_random_svc_name[29][15];

enum RESOURCE_KEYS
{
	KEY_PKCS12 = 0,
	KEY_PKCS7  = 1,
	KEY_X509   = 2
};

extern char g_keys[4][4];

extern WCHAR g_test50 [6][50];
extern WCHAR g_test100[3][100];


extern FILETIME g_kernel_creation_time;
extern FILETIME g_kernel_last_write_time;

extern WCHAR g_szWinDir[40];

/** ----->> Undeclared <<----- **/
extern WCHAR g_unk_pool[30]; // Unused but allocated
extern WCHAR g_module_path[MAX_PATH];
extern FILETIME g_kernel_last_access_time;
extern WCHAR **g_argv;
extern INT32 g_argc;
extern DWORD g_last_random_number;
extern RTL_CRITICAL_SECTION g_critical_section;
extern bool g_ready_to_attack;
extern DWORD g_dwWiperID;
extern WCHAR g_szWiperName[50];
extern DWORD g_dwC2_ID;
extern WCHAR g_dwC2_Name[50];


typedef struct _JOB_PROPERTIES {
	WCHAR ServerName[40];
	bool IsServerNameSet;
	DWORD JobId;
} JOB_PROPERTIES, *PJOB_PROPERTIES;

#endif